package com.fuershiye.woman.monitor.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author yongyongdong
 *
 */
@Controller
public class HomeController {
    
//    @RequiresPermissions("home:view")
	@RequestMapping(value="/home.do")
	public ModelAndView home(HttpServletRequest request,HttpServletResponse response) throws IOException{
		return new ModelAndView("home");
	}

//    @RequiresPermissions("manager:view")
    @RequestMapping(value="/manager.do")
    public String manager(HttpServletRequest request,HttpServletResponse response) throws IOException {
        return "manager";
    }
}
